home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Together in Jesus: 1st Reconciliation Computer Fun
/
Together in Jesus - First Reconciliation - Computer Fun.iso
/
index.swf
/
scripts
/
frame_37
/
DoAction.as
Wrap
Text File
|
2007-11-18
|
1KB
|
46 lines
startTime = getTimer();
onEnterFrame = function()
{
elapsedTime = getTimer() - startTime;
elapsedHours = Math.floor(elapsedTime / 3600000);
remaining = elapsedTime - elapsedHours * 3600000;
elapsedM = Math.floor(remaining / 60000);
remaining -= elapsedM * 60000;
elapsedS = Math.floor(remaining / 1000);
remaining -= elapsedS * 1000;
elapsedH = Math.floor(remaining / 10);
if(elapsedHours < 10)
{
hours = "0" + elapsedHours.toString();
}
else
{
hours = elapsedHours.toString();
}
if(elapsedM < 10)
{
minutes = "0" + elapsedM.toString();
}
else
{
minutes = elapsedM.toString();
}
if(elapsedS < 10)
{
seconds = "0" + elapsedS.toString();
}
else
{
seconds = elapsedS.toString();
}
if(elapsedH < 10)
{
hundredths = "0" + elapsedH.toString();
}
else
{
hundredths = elapsedH.toString();
}
_root.timer_txt = minutes + ":" + seconds;
};